<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnCreatedInChatUnreadMessageInTable extends AbstractMigration
{
    public function up()
    {
        $this->table('chat_unread_message')
            ->addColumn('created', 'integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => '创建时间'])
            ->save();
    }

    public function down()
    {
        $this->table('chat_unread_message')->removeColumn('created')->save();
    }
}
